pdbfile: Fix MSVC errors and warnings.
authoroliskoli <oliskoli>
Wed, 16 Apr 2008 21:47:24 +0000 (21:47 +0000)
committeroliskoli <oliskoli>
Wed, 16 Apr 2008 21:47:24 +0000 (21:47 +0000)
pdbfile.c
pdbfile.h

index 3d53c7bea9be2f52e3b8e11cc7a4040df1442c70..2f9c1638ffff12a43c555ac68b16bc51cd52a05a 100644 (file)
--- a/pdbfile.c
+++ b/pdbfile.c
@@ -82,7 +82,7 @@ pdb_load_data(pdbfile *fin)
 {
        gbuint16 i, ct;
        pdbrec_t *last_rec;
-       gbint32 offs;
+       gbuint32 offs;
        pdbrec_t *rec;
        
        /* load the header */
@@ -157,7 +157,7 @@ pdb_load_data(pdbfile *fin)
        last_rec = fin->rec_list;
 
        if (fin->appinfo_offs != 0) {
-               gbint32 top;
+               gbuint32 top;
 
                /* seek to application info offset */
                while (offs < fin->appinfo_offs) {
index 4bef52211f286933a195b9d80e7de7b22dac4022..b1c652f047d66f71c00f74c12c14b2a6681b1d4a 100644 (file)
--- a/pdbfile.h
+++ b/pdbfile.h
@@ -58,8 +58,8 @@ typedef struct {
        time_t mtime;           /* modification time */
        time_t btime;           /* backup time */
        gbuint32 revision;
-       gbint32 appinfo_offs;   /* offset to application info */
-       gbint32 index_offs;     /* offset to sort-index info */
+       gbuint32 appinfo_offs;  /* offset to application info */
+       gbuint32 index_offs;    /* offset to sort-index info */
        gbuint32 creator;
        gbuint32 type;
        gbuint32 uid;